package com.python.project2.service.impl;

import com.python.project2.db.domain.MarketGoodsExample;
import com.python.project2.db.mapper.MarketGoodsMapper;
import com.python.project2.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Date 2023/3/31
 * @Author lixian
 **/
@Service
public class GoodsServiceImpl implements GoodsService {

	@Autowired
	private MarketGoodsMapper goodsMapper;

	@Override
	public Long getCount() {
		return goodsMapper.countByExample(new MarketGoodsExample().createCriteria().andDeletedEqualTo(false).example());
	}
}
